package com.zhg.service.impl;

import com.zhg.model.auto.News;
import com.zhg.mapper.auto.NewsMapper;
import com.zhg.model.auto.NewsAccount;
import com.zhg.service.INewsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 达瓦里氏
 * @since 2021-12-24
 */
@Service
public class NewsServiceImpl extends ServiceImpl<NewsMapper, News> implements INewsService {

    @Resource
    NewsMapper newsMapper;

    @Override
    public List<NewsAccount> SelectAllNews() {
        return newsMapper.SelectAllNews();
    }
}
